class Order {
  final int id;
  final int userId;
  final String username;
  final double totalPrice;
  final String address;
  final String addressDetail;
  final String remark;
  final String status;
  final DateTime createdAt;
  final DateTime updatedAt;
  final List<OrderItem> items;

  Order({
    required this.id,
    required this.userId,
    required this.username,
    required this.totalPrice,
    required this.address,
    required this.addressDetail,
    required this.remark,
    required this.status,
    required this.createdAt,
    required this.updatedAt,
    required this.items,
  });
}

class OrderItem {
  final int id;
  final int foodId;
  final String foodName;
  final String foodImage;
  final int quantity;
  final double price;

  OrderItem({
    required this.id,
    required this.foodId,
    required this.foodName,
    required this.foodImage,
    required this.quantity,
    required this.price,
  });
}